package test;

public class BitTool
{
	public static void printBits(byte[] s)
	{
		for(byte b : s)
		{
			System.out.print(b);
			System.out.print(":\t");
			for(int i = 0; i < 8; i ++)
			{
				System.out.print(((b << i) & 0xFF) >>> 7);
				System.out.print(" ");
			}
			System.out.println("");
		}
	}
}
